<template>
  <div class="ask">
    <van-nav-bar
      title="个人信息"
      placeholder
      fixed
      left-arrow
      @click-left="onClickLeft"
    />
    <div class="ask__card">
      <div class="ask__header">
        <div class="ask__ava">
          <img src="@/assets/images/login.png" />
          <span>司徒晚景 · 市场部总监</span>
        </div>
        <span class="date">2023-02-22 12:22</span>
      </div>
      <div class="ask__center">
        <div class="ask__content">
          关于怎么提升公司公众号流量, 应提升那几方面呢?
        </div>
        <img src="@/assets/images/login.png" />
      </div>
      <div class="ask__bottom">
        <div>12人回答<span>·</span>34浏览</div>
      </div>
    </div>
    <div class="ask__card">
      <div class="ask__header">
        <div class="ask__ava">
          <img src="@/assets/images/login.png" />
          <span>司徒晚景 · 市场部总监</span>
        </div>
        <span class="date">2023-02-22 12:22</span>
      </div>
      <div class="ask__center">
        <div class="ask__content">
          关于怎么提升公司公众号流量, 应提升那几方面呢?
        </div>
      </div>
      <div class="ask__bottom">
        <div>12人回答<span>·</span>34浏览</div>
      </div>
    </div>
  </div>
</template>
<script setup name="Ask">
const onClickLeft = () => history.back();
</script>
<style lang="scss" scoped>
.ask {
  padding: 16px;

  &__card {
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
  }

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &__ava {
    display: flex;
    align-items: center;

    img {
      width: 20px;
      height: 20px;
      border-radius: 50%;
    }

    span {
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #272b2d;
      line-height: 17px;
      padding-left: 4px;
    }
  }

  .date {
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    line-height: 17px;
  }

  &__center {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;

    img {
      width: 100px;
      height: 60px;
      border-radius: 4px;
      margin-left: 18px;
    }
  }

  &__content {
    flex: 1;
    font-size: 16px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    color: #272b2d;
    line-height: 22px;
    text-align: justify;
  }

  &__bottom {
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    line-height: 17px;
    span {
      padding: 0 6px;
    }
  }
}
</style>
